CC=gcc
CFLAGS=
LDFLAGS=-lusb

all: ptpcam ground

ptpcam: config.h libptp-endian.h libptp-stdint.h myusb.c properties.c ptp-pack.c ptp.c ptp.h ptpcam.c ptpcam.h protocol.h
	$(CC) -o ptpcam myusb.c properties.c ptp.c ptpcam.c $(CFLAGS) $(LDFLAGS) -Wall

ground: client.c protocol.h
	$(CC) -o ground client.c

clean: 
	rm -f *.o ptpcam ground
